﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebUI.Demo.Aspx
{
    public partial class ToDemoGetTags : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(Request.QueryString["file"])) return;
            var tags = File.ReadAllText(Server.MapPath("/demo/templates/" + Request.QueryString["file"]));
            this.Literal1.Text = tags.Replace("<", "&lt;").Replace(">", "&gt;");
        }
    }
}